package User;

import Book.BookList;
import Operation.*;
import Operation.IOperation;


import java.util.Scanner;

public class NormalUser extends User{
    public NormalUser(String name) {
        super(name);
        this.IOperations = new IOperation[]{
                new ExitOperation(),
                new FindOpperation(),
                new BorrowOperation(),
                new ReturnOperation(),
                new DisplayOperation()
        };

    }

    @Override
    public int menu() {
        System.out.println("请选择要选择的的操作》");
        System.out.println("1.查找图书");
        System.out.println("2.借阅图书");
        System.out.println("3.归还图书");
        System.out.println("4.打印图书");
        System.out.println("0.退出程序");
        Scanner scanner = new Scanner(System.in);
        int input = scanner.nextInt();
        return input;
    }



}
